<script lang="ts">
export default {
  name: 'index',
}
</script>
<script setup lang="ts">

import homeHeaderComponent from "@/components/home/homeHeaderComponent.vue";
import homeSidebarComponent from "@/components/home/homeSidebarComponent.vue";
import RouterView from "@/App.vue";
</script>

<template>

  <el-container>
    <el-header class="header">
      <homeHeaderComponent/>
    </el-header>
    <el-container>
      <el-aside width="200px" class="side-bar">
        <homeSidebarComponent/>
      </el-aside>
      <Suspense>
        <el-main class="content">
          <router-view/>
        </el-main>
      </Suspense>
    </el-container>
  </el-container>
</template>

<style scoped>
.header {
  width: 100%;
  height: 90px;
  padding-left: 10px;
  border-bottom: 1px solid rgba(29, 161, 242, 0.3);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.side-bar {
  margin-left: 20px;
  width: 200px;
  height: 100%;
  float: left;
  overflow: auto;
}

.content {
  width: 80%;
  height: 100%;
  flex-grow: 1;
  float: right;
}

</style>